package com.hgyc.mom.system.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hgyc.mom.system.entity.SysMenu;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 系统菜单 Mapper 接口
 * </p>
 *
 * @author fwj
 * @since 2025-01-16
 */
public interface SysMenuMapper extends BaseMapper<SysMenu> {

    List<SysMenu> getUserMenu(@Param("userId") Long userId);

    List<SysMenu> getUserPermission(@Param("userId") Long userId);

    List<SysMenu> getRoleMenu(@Param("roleId") Long roleId);

    List<SysMenu> roleAuth(Long roleId);

}
